<template>
  <div class="container">
    <div>信息展示：</div>

    <div>
      <span>地址：</span>
      <span>{{ placeAddress }}</span>
    </div>
    <div>
      <span>坐标：</span>
      <span>{{ placeLocation }}</span>
    </div>
  </div>
</template>

<script>
import bus from "@/eventBus/eventBus.js";
export default {
  data() {
    return {
      placeAddress: "",
      placeLocation: "",
    };
  },
  created() {
    bus.$on("shareAddress", (res) => {
      //console.log("---------", res);
      this.placeAddress = res.address;
      this.placeLocation = res.pos;
    });
  },
};
</script>

<style lang="less" scoped>
.container {
  width: 150px;
  height: 220px;
  background-color: rgb(208, 199, 199);
}
</style>